package org.demo.dubbo;

import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.spring.context.annotation.DubboComponentScan;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.ApplicationContext;

/**
 * 作者：lizw <br/>
 * 创建时间：2021/10/08 10:26 <br/>
 */
@DubboComponentScan
@SpringBootApplication
@Slf4j
public class DubboProviderDemo {
    public static void main(String[] args) {
        ApplicationContext ctx = new SpringApplicationBuilder(DubboProviderDemo.class)
                .web(WebApplicationType.NONE)
                .run(args);
        log.info("### 服务启动完成 === " + ctx);
    }
}
